Getting Information About the Scrap
To get information about the scrap, you can use theInfoScrap
function. TheInfoScrap
function returns a pointer to a scrap information record. (See "The Scrap Information Record" on page 2-32 for detailed information on the fields of this record.) The information in the scrap information record provides
For example, this code uses the
- the size (in bytes) of the scrap
- a handle to the scrap if it's in memory
- a count, or number that your application can use to determine whether the contents of the scrap have changed
- the location of the scrap (whether in memory or on disk)
- the filename of the scrap when it is on the disk
InfoScrap
function to get the size of the scrap.
VAR curScrapInfoPtr: PScrapStuff; curScrapSize: LongInt; curScrapInfoPtr := InfoScrap; curScrapSize := curScrapInfoPtr^.scrapSize;